<?php

/* Local cache for DB rows, shared values, etc, and ext_cache to access the ext_cache DB table.
 * Author: Phil
 * Eventually this will also connect to memcached.
 */
class ZendX_Cache_Cache {
  private static $store = array();

  public static function reset() {
    ZendX_Cache_Cache::$store = array();
  }
  
  public static function setValue($k, $v) {
    ZendX_Cache_Cache::$store[$k] = $v;
  }

  public static function getValue($k) {
    return array_key_exists($k, ZendX_Cache_Cache::$store) ? ZendX_Cache_Cache::$store[$k] : false;
  }

  public static function removeValue($k) {
    unset(ZendX_Cache_Cache::$store[$k]);
  }

}

?>